/**
 * 
 */
package com.bm.console.pojo;

import org.springframework.util.StringUtils;

import com.sys.object.common.page.Page;

/**
 * @author zxp
 *
 */
public class BaseBean extends Page implements java.io.Serializable{

	private String username;
	private String mobile;
	private String icard;
	
	private String startStr;
	private String endStr;
	
	private String startStr2;
	private String endStr2;
	
	private Integer startIn;
	private Integer endIn;
	
	private Integer startIn2;
	private Integer endIn2;
	private String concatStr;
	private String jobStatus;
	private String jobUStatus;
	
	
	private String drivername;
	
	public String getUsername() {
		if(!StringUtils.hasText(username))
			username = this.getValue(0);
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getMobile() {
		if(!StringUtils.hasText(mobile))
			mobile = this.getValue(1);
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getIcard() {
		if(!StringUtils.hasText(icard))
			icard = this.getValue(2);
		return icard;
	}
	public void setIcard(String icard) {
		this.icard = icard;
	}
	public String getStartStr() {
		return startStr;
	}
	public void setStartStr(String startStr) {
		this.startStr = startStr;
	}
	public String getEndStr() {
		return endStr;
	}
	public void setEndStr(String endStr) {
		this.endStr = endStr;
	}
	public String getStartStr2() {
		return startStr2;
	}
	public void setStartStr2(String startStr2) {
		this.startStr2 = startStr2;
	}
	public String getEndStr2() {
		return endStr2;
	}
	public void setEndStr2(String endStr2) {
		this.endStr2 = endStr2;
	}
	public Integer getStartIn() {
		return startIn;
	}
	public void setStartIn(Integer startIn) {
		this.startIn = startIn;
	}
	public Integer getEndIn() {
		return endIn;
	}
	public void setEndIn(Integer endIn) {
		this.endIn = endIn;
	}
	public Integer getStartIn2() {
		return startIn2;
	}
	public void setStartIn2(Integer startIn2) {
		this.startIn2 = startIn2;
	}
	public Integer getEndIn2() {
		return endIn2;
	}
	public void setEndIn2(Integer endIn2) {
		this.endIn2 = endIn2;
	}
	public String getConcatStr() {
		return concatStr;
	}
	public void setConcatStr(String concatStr) {
		this.concatStr = concatStr;
	}
	public String getDrivername() {
		return drivername;
	}

	public void setDrivername(String drivername) {
		this.drivername = drivername;
	}
	public String getValue(int type){
		if(StringUtils.hasText(this.concatStr)){
			String[] strs = this.concatStr.split(",");
			return strs[type];
		}
		return null;
	}
	public String getJobStatus() {
		return jobStatus;
	}
	public void setJobStatus(String jobStatus) {
		this.jobStatus = jobStatus;
	}
	public String getJobUStatus() {
		return jobUStatus;
	}
	public void setJobUStatus(String jobUStatus) {
		this.jobUStatus = jobUStatus;
	}
	
}
